import App from '../App'


import login from "../gdviews/login";



import mallIndex from "../gdviews/home/index"
import orderIndex from "../gdviews/order/index"
import getOrderIndex from "../gdviews/order/getOrder"
import getOrderDetails from "../gdviews/order/getOrderDetails"
import getItemDetails from "../gdviews/order/getItemDetails"
import statusIndex from "../gdviews/status/index"
import detailsIndex from "../gdviews/status/details"
import forPersonOrder from "../gdviews/status/forPersonOrder"
import changePwd from "../gdviews/status/pwd"

import myIndex from "../gdviews/my/index"
import company from "../gdviews/my/company"
import eleMeter from "../gdviews/my/eleMeter"
import meterChart from "../gdviews/my/meterChart"






export default [{
    path: '/',
    component: App, //顶层路由，在index.html里加载App组件
    children: [//二级路由。对应App.vue 里的router-view
      //地址为空时跳转index页面
      {
        path: '',
        redirect:'/login',
        auth:false
      },
      //登录页面
      {
        path: '/login',
        component: login,
        meta: {
          title: '登陆',
					keepAlive:false,
          auth:false
        },
      },
      //index页面
      {
        path: '/mallIndex',
        component: mallIndex,
        meta: {
          title: '国动集团',
					keepAlive:false,
          auth:true
        }
      },
			//状态监控
      {
        path: '/statusIndex',
        component: statusIndex,
        meta: {
          title: '状态监控',
					keepAlive:false,
          auth:true
        }
      },
					//状态详情
      {
        path: '/detailsIndex',
        component: detailsIndex,
        meta: {
          title: '状态详情',
					keepAlive:false,
          auth:true
        }
      },
				//下发派单任务
			{
			  path: '/forPersonOrder',
			  component: forPersonOrder,
			  meta: {
			    title: '任务派单',
					keepAlive:false,
			    auth:true
			  }
			},
				//修改密码
			{
			  path: '/changePwd',
			  component: changePwd,
			  meta: {
			    title: '修改密码',
					keepAlive:false,
			    auth:true
			  }
			},
			
			
			
			//维护派单
      {
        path: '/orderIndex',
        component: orderIndex,
        meta: {
          title: '维护派单',
					keepAlive:false,
          auth:true
        }
      },
			//维护接单
      {
        path: '/getOrderIndex',
        component: getOrderIndex,
        meta: {
          title: '维护接单',
					keepAlive:false,
          auth:true
        }
      },
					//维护接单-反馈填写
			{
			  path: '/getOrderDetails',
			  component: getOrderDetails,
			  meta: {
			    title: '维护接单-反馈',
					keepAlive:false,
			    auth:true
			  }
			},
					//维护接单-反馈查看
			{
			  path: '/getItemDetails',
			  component: getItemDetails,
			  meta: {
			    title: '维护接单-详细查看',
					keepAlive:false,
			    auth:true
			  }
			},
					//我的
      {
        path: '/myIndex',
        component: myIndex,
        meta: {
          title: '我的',
					keepAlive:false,
          auth:true
        }
      },  
			{
        path: '/company',
        component: company,
        meta: {
          title: '全国分公司',
					keepAlive:false,
          auth:true
        }
      },
			{
        path: '/eleMeter',
        component: eleMeter,
        meta: {
          title: '分公司电表',
					keepAlive:true,
          auth:true
        }
      },
			{
        path: '/meterChart',
        component: meterChart,
        meta: {
          title: '电量电费',
					keepAlive:false,
          auth:true
        }
      },



    ]
}]
